import 'package:json_annotation/json_annotation.dart';

part 'EcyApiCommonPage.g.dart';

@JsonSerializable()
class EcyApiCommonPage<T> {
  EcyApiCommonPage();

  int? size; // 每页个数
  int? total; // 总数
  int? pages; // 总页数
  int? current; // 当前页
  List<T>? records;
  
  factory EcyApiCommonPage.fromJson(Map<String, dynamic> json,T Function(dynamic json) fromJsonT) => _$EcyApiCommonPageFromJson(json, fromJsonT);

}
